package com.bwjf.authority.entity;

import java.util.Date;

import org.hibernate.validator.constraints.NotEmpty;

import com.baomidou.mybatisplus.annotations.TableId;
import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.bwjf.authority.entity.validate.UserLoginValidate;

import java.io.Serializable;


/**
 * <p>
 * 用户表
 * </p>
 *
 * @author LiLuQing
 * @since 2017-03-06
 */
@TableName("authority_user")
public class AuthorityUser implements Serializable {

  private static final long serialVersionUID = 1L;

    /**
     * 用户ID
     */
	@TableId("user_id")
	private String userId;
    /**
     * 用户登录代码
     */
	@NotEmpty(groups=UserLoginValidate.class,message="用户账号不能为空")
	@TableField("user_code")
	private String userCode;
    /**
     * 用户名称
     */
	@TableField("user_name")
	private String userName;
    /**
     * 用户密码
     */
	@NotEmpty(groups=UserLoginValidate.class,message="用户密码不能为空")
	@TableField("user_password")
	@JSONField(serialize=false) 
	private String userPassword;
    /**
     * 所属机构ID
     */
	@TableField("organization_id")
	private String organizationId;
    /**
     * 创建时间
     */
	@TableField("create_time")
	private Date createTime;
    /**
     * 创建人
     */
	private String creator;
    /**
     * 删除状态:  0正常   1已删除
     */
	private Integer del;
	@TableField("del_time")
	private Date delTime;


	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getUserCode() {
		return userCode;
	}

	public void setUserCode(String userCode) {
		this.userCode = userCode;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getUserPassword() {
		return userPassword;
	}

	public void setUserPassword(String userPassword) {
		this.userPassword = userPassword;
	}

	public String getOrganizationId() {
		return organizationId;
	}

	public void setOrganizationId(String organizationId) {
		this.organizationId = organizationId;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getCreator() {
		return creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	public Integer getDel() {
		return del;
	}

	public void setDel(Integer del) {
		this.del = del;
	}

	public Date getDelTime() {
		return delTime;
	}

	public void setDelTime(Date delTime) {
		this.delTime = delTime;
	}

}
